<?php
   include 'connectDB.php';
   
   $strSQL = "INSERT INTO tbl_item(item_id, item_name, price, date, mer_id) VALUES (''
	, '".$_POST[txtItemName]."' , '".$_POST[txtPrice]."',now(),'".$_POST[Merchant]."'   )  ";

   
   $objQuery = mysql_query($strSQL);
	if($objQuery)
	{
		echo "Save Done.";
		echo '<meta HTTP-EQUIV="REFRESH" content="2; url=http://127.0.0.1/merchant/Item.php">';
	}
	else
	{
		echo "Error Save [".$strSQL."]";
		echo '<meta HTTP-EQUIV="REFRESH" content="15; url=http://127.0.0.1/merchant/addItem.php">';
	}
	
		
	mysql_close($objConnect);
?>